﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

using IntrepidGame.CollisionObjects;
using IntrepidGame.CollisionObjects.ShipClasses;
using IntrepidGameLibrary;
using IntrepidGameLibrary.Controls;

namespace IntrepidGame.GameScreens
{
    public class BattleScreen : BaseGameState
    {

        #region Variables Region

        //for now
        Ship playerShip;

        #endregion

        #region Constructor Region

        public BattleScreen(Game game, GameStateManager manager)
            : base(game, manager)
        {
            playerShip = new Ship();
        }

        #endregion

        #region XNA Functions

        protected override void LoadContent()
        {
            ContentManager Content = GameRef.Content;

            //backgroundImage = Content.Load<Texture2D>(@"Backgrounds\TitleScreen"+GameRef.screenRectangle.Height);

            playerShip.LoadContent(GameRef, "Ships/PlayerScout", new Rectangle(0, 0, 64, 64), new Rectangle(608, 328, 64, 64), Color.White);
            playerShip.Enabled = true;
            playerShip.Visible = true;

            base.LoadContent();

            
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            playerShip.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {
            GameRef.spriteBatch.Begin();

            base.Draw(gameTime);

            playerShip.Draw(GameRef.spriteBatch);

            GameRef.spriteBatch.End();
        }

        #endregion

        #region My Functions

        #endregion

    }
}

